#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define LENGTH 2000
int main()
{
	char str1[LENGTH];
	char str2[LENGTH];
	char str3[LENGTH]="";
	for (int i = 0; i <= 29; i++)
	{
		int c = rand() % 26;
		str1[i] = 'A' + c;
		c = rand() % 26;
		str2[i] = 'A' + c;
	}
	str1[30] = '\0';
	str2[30] = '\0';

	puts(str1);
	printf("\n");
	puts(str2);

	if (strcmp(str1, str2) > 0)
		printf("str1 > str2");
	else if (strcmp(str1, str2) == 0)
		printf("str1 == str2");
	else printf("str1 < str2");
	printf("\n");


	strcat(str3, str1);
	strcat(str3, str2);
	puts(str3);

	int len = strlen(str3);
	printf("The length is %d", len);

}
